#include <iostream>
#include <string>
#include <sys/types.h>
#include <signal.h>

int main(int argc, char *argv[])
{
    // ./mykill signumber pid
    if (argc != 3)
    {
        std::cout << "./mykill signumber pid" << std::endl;
        return 1;
    }
    int signumber = std::stoi(argv[1]);
    int pid = std::stoi(argv[2]);
    int n = kill(pid, signumber);
    if (n == 0)
    {
        std::cout << "send " << signumber << " to " << pid << " success!" << std::endl;
    }
    return 0;
}